package com.lanyou.cook.entitylistener.domain;

import javax.persistence.PreUpdate;

import com.lanyou.cook.datadictionary.UserLogOpt;
import com.lanyou.cook.entity.domain.InterfaceSchedule;
import com.lanyou.cook.service.UserLogService;

public class InterfaceSettingServiceEntityListenerForLog {

	@PreUpdate
	public void preUpdate(InterfaceSchedule target) {
		String content = String.format("修改调度“%s”的执行接口服务设置", target.getName());
		UserLogService.getInstance().save(UserLogOpt.MaintenanceInterfaceServiceSetting, null, content);
	}
}
